/*
 * @Descripttion: 
 * @version: 1.0
 * @Author: Sam
 * @Date: 2022-03-26 02:58:38
 * @LastEditors: Sam
 * @LastEditTime: 2022-05-07 11:36:45
 */
import Layout from '@/layout'

export default {
 alwaysShow: true,
 redirect: 'noRedirect',
  path: '/goods',
  component: Layout,
  name :'goods',
  meta: {
    title: '商品管理',
    icon: 'el-icon-goods',
    roles: [
      'goods'
    ]
  },
  children: [
    { path: '/goods/category', component: ()=>import('@/views/goods/category/index'), name: 'goods_category', meta: { title: '商品分类',roles: ['goods.category_index'] }},
    { path: '/goods/rule', component: ()=>import('@/views/goods/rule/index'), name: 'goods_rule', meta: { title: '规格模板',roles: ['goods.rule_index'] }},
    { path: '/goods/goods', component: ()=>import('@/views/goods/goods/index'), name: 'goods_index', meta: { title: '商品管理',roles: ['goods.index'] }}
  ]
}
